<template>

  <el-dialog
    v-model="dialogVisible"
    title="略略略"
    width="500"
    draggable
      align-center
      :show-close="false"
      :close-on-click-modal="false"
  >
    <span style="font-size: 30px;">{{ str }}</span>
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="onCloseBtn">我不是</el-button>
        <el-button type="primary" @click="onShowBtn">
          我是
        </el-button>
      </div>
    </template>
  </el-dialog>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

const dialogVisible = ref(true)
const str = ref("静姐是笨蛋")

function onCloseBtn() {
  str.value="什么鬼,不可能"
}

function onShowBtn() {
  str.value="你承认喽"
}
</script>
